using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Data;
using System.Windows.Forms;
using THSERP.BusinessEntities;
using THSERP.BaseProvider;


namespace THSERP.Modules.Item
{
    public partial class ICProductAlternativesGridControl : THSGridControl
    {
        public ICProductAlternativesGridControl()
        {
            InitializeComponent();
        }

        public ICProductAlternativesGridControl(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public override void InitGridControlDataSource()
        {
            //base.InitGridControlDataSource();
            ItemEntities entity = (ItemEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            BindingSource bds = new BindingSource();
            bds.DataSource = entity.ICProductAlternativesList;
            this.DataSource = bds;
        }
    }
}
